package gestionTransportObjetsGenerated;

/**
 * Interface definition : GestionZone
 * 
 * @author OpenORB Compiler
 */
public abstract class GestionZonePOA extends org.omg.PortableServer.Servant
        implements GestionZoneOperations, org.omg.CORBA.portable.InvokeHandler
{
    public GestionZone _this()
    {
        return GestionZoneHelper.narrow(_this_object());
    }

    public GestionZone _this(org.omg.CORBA.ORB orb)
    {
        return GestionZoneHelper.narrow(_this_object(orb));
    }

    private static String [] _ids_list =
    {
        "IDL:gestionTransportObjetsGenerated/GestionZone:1.0"
    };

    public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte [] objectId)
    {
        return _ids_list;
    }

    public final org.omg.CORBA.portable.OutputStream _invoke(final String opName,
            final org.omg.CORBA.portable.InputStream _is,
            final org.omg.CORBA.portable.ResponseHandler handler)
    {

        if (opName.equals("connaitreVoisinnage")) {
                return _invoke_connaitreVoisinnage(_is, handler);
        } else {
            throw new org.omg.CORBA.BAD_OPERATION(opName);
        }
    }

    // helper methods
    private org.omg.CORBA.portable.OutputStream _invoke_connaitreVoisinnage(
            final org.omg.CORBA.portable.InputStream _is,
            final org.omg.CORBA.portable.ResponseHandler handler) {
        org.omg.CORBA.portable.OutputStream _output;
        gestionTransportObjetsGenerated.Station arg0_in = gestionTransportObjetsGenerated.StationHelper.read(_is);
        gestionTransportObjetsGenerated.StationHolder arg1_inout = new gestionTransportObjetsGenerated.StationHolder();
        arg1_inout.value = gestionTransportObjetsGenerated.StationHelper.read(_is);

        gestionTransportObjetsGenerated.Voisin _arg_result = connaitreVoisinnage(arg0_in, arg1_inout);

        _output = handler.createReply();
        gestionTransportObjetsGenerated.VoisinHelper.write(_output,_arg_result);

        gestionTransportObjetsGenerated.StationHelper.write(_output,arg1_inout.value);
        return _output;
    }

}
